#ifndef __DE634983_F4EA_47c3_9783_CEA0B9D8CDEB__
#define __DE634983_F4EA_47c3_9783_CEA0B9D8CDEB__

#include "../import/head.h"

namespace xos_sgsj
{

    class session;
    class data;

    class helper_tcp
    {
    public:
        helper_tcp();
        ~helper_tcp();

    protected:
        int on_init( data * pData );
        int on_accept( data * pData );
        int on_recv( data * pData );
        int on_send( data * pData );
        int need_close( data * pData );
        int on_connect( data * pData );
        int on_close( data * pData );

    public:
        int proc( data * pData );

    };

} // xos_sgsj

#endif // __DE634983_F4EA_47c3_9783_CEA0B9D8CDEB__
